package com.mes.biz.domain;

import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.List;
import javax.validation.constraints.NotBlank;

import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库存期初对象 biz_inventory_opening
 * @author wy
 * @email wy
 * @date 2023-06-08
 */
@Data
public class BizInventoryOpening extends BaseEntity<BizInventoryOpening>
{
    private static final long serialVersionUID = 1L;

    /** 期初单号 */
    @Excel(name = "期初单号")
    @LogField
    @FieldRemark(name = "期初单号",field = "orderNo")
    private String orderNo;

    /** 仓库 */
    @Excel(name = "仓库")
    @NotBlank(message = "仓库不允许为空")
    @LogField
    @FieldRemark(name = "仓库",field = "warehouseId")
    private String warehouseId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    @LogField
    @FieldRemark(name = "商品数量",field = "quantity")
    private BigDecimal quantity;

    /** 租户id */
    @Excel(name = "租户id")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    /** 1待审核2已审核 */
    @Excel(name = "1待审核2已审核", dictType = "sys_normal_disable")
    @LogField
    @FieldRemark(name = "1待审核2已审核",field = "status")
    private Integer status;

    private String warehouseName;

    private List<BizInventoryOpeningDetails> detailsList;

}
